package com.ztman.rxjava.mvp.viewProxy;

import android.widget.TextView;

import com.ztman.rxjava.R;
import com.ztman.rxjava.mvp.view.BaseViewActivityIml;
import com.ztman.rxjava.view.activity.WeatherActivity;

import butterknife.Bind;

/**
 * Created by YJH on 2017/11/30.
 * 功能：WeatherActivityProxy-已经实体化的逻辑功能处理的代理类
 */

public class WeatherActivityProxy extends BaseViewActivityIml {
    @Bind(R.id.tWeather)
    TextView tWeather;

    private WeatherActivity mWeatherAcitivty;

    @Override
    public int getLayoutIdInBaseView() {
        return R.layout.activity_weather;
    }

    /**
     * 功能：注册aty进来
     * 这个方法要在 使用到aty对象的所有操作之前
     * @param mWeatherAcitivty
     */
    public void register(WeatherActivity mWeatherAcitivty){
        this.mWeatherAcitivty = mWeatherAcitivty;
    }

    //设置天气的信息
    public void setWeatherInfo(String weatherInfo){
        tWeather.setText(weatherInfo);
    }
}
